using System;
using Plain;
using Newtonsoft.Json;
using Plain.Validation;

namespace Plain.Demo.Blog.Business
{
	public class Comment : BusinessEntity<int>
	{
		public virtual String Author { get; set; }
        [NotEqual("rune@juhl-petersen.net")]
		public virtual String Email { get; set; }
		public virtual String IpAddress { get; set; }
		public virtual String Content { get; set; }
		public virtual DateTime Created { get; set; }
		[JsonIgnore]
		public virtual Post Post { get; set; }
	}
}